package com.hjenglish;

import com.hjenglish.R;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class MainActivity extends TabActivity {
    /** Called when the activity is first created. */
	public TabHost mth;
	public static final String TAB_HOME="推荐";
	public static final String TAB_MSG="主页";
	public RadioGroup radioGroup;
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏
        setContentView(R.layout.main);
        
        mth=this.getTabHost();
        
        TabSpec ts1=mth.newTabSpec(TAB_HOME).setIndicator(TAB_HOME);
        ts1.setContent(new Intent(MainActivity.this,FirstActivity.class));
        mth.addTab(ts1);
        
        TabSpec ts2=mth.newTabSpec(TAB_MSG).setIndicator(TAB_MSG);
        ts2.setContent(new Intent(MainActivity.this,FirstActivity.class));
        mth.addTab(ts2);
        
        
        
        mth.setCurrentTabByTag(TAB_HOME);
        
        
        
        
        
        
        
        

        
    }
}